<template>
  <div class="home">
    <div cla class="main">
      <div class="iconfont icon-msnui-404 found">404</div>
      <div class="btn" @click="$router.replace('/home')">返回首页</div>
    </div>
  </div>
</template>

<script setup>
import { useRouter} from 'vue-router'
const $router = useRouter()
</script>

<style lang="scss" scoped>
.home{
  width: 100%;
  height: 100vh;
  position: relative;
  .main{
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    align-items: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    .found{
      font-size: 32px;
    }
    .btn{
      font-size: .14rem;
      height: 32px;
      width: 20%;
      line-height: 32px;
      color: #fff;
      background: #1890ff;
      text-align:center;
      border-radius: .3rem;
    }
  }
}
</style>